/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const articleRouter = {
  path: '/article',
  component: Layout,
  name: '内容管理',
  meta: {
    title: '内容管理',
    subtitle:'内容',
    icon: 'menu_article'
  },
  children: [
    {
      path: '/article/list',
      component: () => import('@/views/article/list'),
      name: 'article-list',
      meta: {title: '文章管理' ,subtitle:'文章',icon:'menu_article',permissions:['article.query']}
    },
    {
      path: '/article/add',
      component: () => import('@/views/article/add'),
      name: 'article-add',
      meta: {title: '新增文章' ,icon:'menu_article'},
      hidden: true
    },
    {
      path: '/article/edit',
      component: () => import('@/views/article/edit'),
      name: 'article-edit',
      meta: {title: '修改文章' ,icon:'menu_article'},
      hidden: true
    },
    // {
    //   path: '/enrollOrder/list',
    //   component: () => import('@/views/enrollOrder/list'),
    //   name: 'enrollOrder-list',
    //   meta: {title: '报名记录' ,subtitle:'报名',icon:'menu_order',permissions:['enrollOrder.query']},
    // },
    // {
    //   path: '/enrollOrder/details',
    //   component: () => import('@/views/enrollOrder/details'),
    //   name: 'enrollOrder-details',
    //   meta: {title: '报名详情' ,icon:'menu_order'},
    //   hidden: true
    // },
    {
      path: '/sysMsg/list',
      component: () => import('@/views/sysMsg/list'),
      name: 'sysMsg-list',
      meta: { title: '消息管理' ,subtitle:'消息',icon: 'menu_product',permissions:['sysMsg.query']}
    },
    {
      path: '/sysMsg/add',
      component: () => import('@/views/sysMsg/add'),
      name: 'sysMsg-add',
      meta: { title: '新增消息' ,icon: 'menu_product'},
      hidden: true
    },
    {
      path: '/sysMsg/edit',
      component: () => import('@/views/sysMsg/edit'),
      name: 'sysMsg-edit',
      meta: { title: '修改消息' ,icon: 'menu_product'},
      hidden: true
    },
  ]
}
export default articleRouter
